package com.diao.mysql;

import java.sql.*;

/**
 * @author chenzhidiao
 * @version 1.0
 * @date 2020/5/3 18:45
 * @description:
 */
public class MySQLUtils {
    private static String URL="";
    private static String USER_NAME="";
    private static String PASSWORD="";

    private static Connection conn=null;
    private static PreparedStatement pst=null;

    public static Connection getConnection(String url,String username,String password) throws ClassNotFoundException {
        Class.forName("com.mysql.jdbc.Driver");
        try {
            conn = DriverManager.getConnection(url,username,password);
            Statement statement = conn.createStatement();
            PreparedStatement preparedStatement = conn.prepareStatement("");
            CallableStatement callableStatement = conn.prepareCall("");

            ResultSet resultSet = statement.executeQuery("");
            
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return conn;
    }

}
